import request from '@/utils/request.js'

const courseHost = '/eduservice/course'

export default {

    
    saveCourseVo(courseVo){
        return new request({
            url:`${courseHost}/save`,
            method:"post",
            data: courseVo
        })
    },
    getInfoById(courseId){
        return new request({
            url:`${courseHost}//getCourseInfoById/${courseId}`,
            method:"get",
        })
    },
    updateCourseInfo(courseVo){
        return new request({
            url:`${courseHost}/update`,
            method:"post",
            data: courseVo
        })
    },
    getPageListSearch(current,size,eduCourseQuery){
        return new request({
            url:`${courseHost}/findByPage/${current}/${size}`,
            method:"post",
            data: eduCourseQuery
        })
    },
    getPageList(current,size,courseQuery){
        return new request({
            url:`${courseHost}/findPage/${current}/${size}`,
            method:"get",
        })
    },
    removeCourse(id){
        return new request({
            url:`${courseHost}/delete/${id}`,
            method:"delete",
        })
    }


}